home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
ACORNUSERS
/
UTILS
/
POSTSCRIPT
/
README
< prev
Wrap
Text File
|
1998-11-26
|
7KB
|
163 lines
Aladdin Ghostscript and Angus Duggans PSUtils for RISC OS
This page is here to give pointers to my ports of Ghostscript 5 (current
version 5.10) and PSUtils for RISC OS. This port is in no way related to
Michael-Dennis Biemans port of ghostscript 4.03, except that I have copied
the application sprite, I hope he doesn't mind!
--------------------------------------------------------------------------
What are they?
Ghostscript is a a fully functional PostScript language interpreter
available for most platforms. Take a look at www.ghostscript.com and
http://www.cs.wisc.edu/~ghost/ for more details. Aladdin ghostscript is
copyrighted by Aladdin Enterprises and is distributed under the Aladdin Free
Public License, it is basically 'free for normal use' - see the web site for
more details.
The version of ghostscript available here is 5.10, these sites indicate that
version 5.50 is available and as soon as I get a chance to take a look at it
I will try to build a RISC OS version.
PSUtils is a set of page imposition tools for postscript files - for example
putting multiple pages per printed page, selecting pages from a document,
resizing the pages or completely reorganizing the print order, placement and
size of the pages. PSUtils has been written by Angus Duggan and this RISC OS
port is all my fault.
--------------------------------------------------------------------------
Where to get them
Both Ghostscript and PSUtils are being made available by FTP on
ftp.acornusers.org in the directory pub/utils/postscript.
Ghostscript 5 is split in four parts:
The RISC OS application and support files: GSapp510.zip (510 KB)
Required ghostscript support files: GSsup510.zip (776 KB)
Standard ghostscript fonts: GSfnt510.zip (1478 KB)
and the 'other' ghostscript fonts: GSoth510.zip (811 KB)
You only need to get the first three files, the fourth is optional. Please
note that all of these files are changed from the much earlier, and
completely unrelated, 4.03 release.
PSUtils is available in a single file: PSUtils16.zip (354 KB) (current
version 1.16)
Please note: PSUtils16.zip is a Spark archive, the Ghostscript files are ZIP
format.
--------------------------------------------------------------------------
Installation
Ghostscript installation:
As it stands ghostscript needs support for long filenames and more than 77
files per directory so to install ghostscript first get a copy of raFS or
X-Files (but not Longfiles since it doesn't support > 77 files/dir).
Create a new raFS disc or X-File and extract the contents of GSapp510.zip
into it. Then open up the !GhostScr application, just created in the raFS
disc or X-file, and copy into it the contents of GSsup510.zip and
GSfnt510.zip (and GSoth510.zip if you want).
And that's it.
(It should be possible to split the support files and fonts into several
directories - the Ghostscript search path for relevant files can be altered
by setting the system variable GS_LIB to a comma separated list of
directories. Much more re-organisation is needed to remove the requirement
for long filenames - and this may have to be re-done for every new release
so I prefer to use one of the options mentioned above.)
PSUtils installation:
Installation of PSUtils is simple - copy the application to wherever you
like and start using it.
--------------------------------------------------------------------------
Use of Ghostscript
An alias has been created so that ghostscript can be run from the command
line at any time (I chose not to alter RunPath). Just type gs -h at a
command prompt to get a little information. Have a look at the full
documentation for more details of how to use ghostscript.
Some common operations with ghostscript have also been given aliases:
* ps2pdf <Input file> <Output file> will convert <Input file> postscript to
a PDF file called <Output file>.
* pdf2ps <Input file> <Output file> does the reverse.
* ps2png <Input file> <Output file> will convert <Input file> to a PNG
format file (24 bit colour, lossless compression).
* ps2jpeg <Input file> <Output file> will convert postscript to JPEG.
* ps2pcx <Input file> <Output file> will convert postscript to a PCX file,
readable by !ChangeFSI.
* ps2tiff <Input file> <Output file> will convert postscript to TIFF
(uncompressed, 24bit colour).
* ps2ps <Input file> <Output file> will 'distill' the input file, writing a
new postscript file. You could use this to alter a file from PS Level 2
to PS Level 1 or just to make the postscript slightly more palatable to
other software.
To try other conversion you may find it useful to look at the aliases.
Available devices, taken from the list output by entering gs -h:
deskjet djet500 laserjet ljetplus ljet2p ljet3 ljet4 cdeskjet cdjcolor
cdjmono cdj550 pj pjxl pjxl300 uniprint bj10e bj200 bjc600 bjc800 faxg3
faxg32d faxg4 pcxmono pcxgray pcx16 pcx256 pcx24b pcxcmyk pbm pbmraw pgm
pgmraw pgnm pgnmraw pnm pnmraw ppm ppmraw tiffcrle tiffg3 tiffg32d tiffg4
tifflzw tiffpack tiff12nc tiff24nc psmono psgray bit bitrgb bitcmyk pngmono
pnggray png16 png256 png16m jpeg jpeggray pdfwrite pswrite epswrite pxlmono
pxlcolor nullpage
Ghostscript also works with GView by Martin Würthner - available on the
Hensa and Imperial College servers.
--------------------------------------------------------------------------
Use of PSUtils
The !PSUtils application is a frontend to all of the basic utilities,
allowing setting of the options and drag and drop conversion. Right clicking
on the icon on the iconbar will switch between the currently active utility.
Clicking select on the icon will open the configuration window for the
active utility. The iconbar menu allows direct selection and configuration
of all the utilities.
Dropping a postscript file on the icon will open up a standard save-as
window. Enter a file name, or drag the icon somewhere suitable and the file
conversion will take place.
The utilities may also be used directly from the command line.
--------------------------------------------------------------------------
Problems ....
This software has been tested, but not thoroughly - having said that
everything I have tried to do with it has worked successfully. Ghostscript
seems perfectly happy with postscript created by the Acorn printer drivers.
The PSUtils also seem happy with postscript from the Acorn drivers. Anything
which doesn't work may benefit from passing through ghostscript.
The only small oddity is that !PDF from Leo Smiers and also RiScript Pro are
not happy about some of the PDF output from ghostscript. The same PDF output
looks fine on viewers on other platforms and is handled correctly by
ghostscript itself. I suspect ghostscript is producing very slightly
non-standard PDF and the Acorn viewers are not handling it in the same way
as viewers on other platforms. This situation may improve with GS 5.50 -
watch this space -> <- but not too closely since it won't be changing
too fast and you might strain your eyes!
--------------------------------------------------------------------------
Last modified: 26-11-98
Graham Jones